package com.catutlis.myapplication;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

import com.catutlis.myapplication.Utils.SqlLiteUtils.SqliteDemo;
import com.catutlis.myapplication.Utils.SqlLiteUtils.SqliteHelper;
import com.catutlis.myapplication.Utils.SqlLiteUtils.SqliteManger;

public class MainActivity extends AppCompatActivity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        SqliteDemo.InitDataBase(this);
    }

    public void DbHelper(View view) {
        switch (view.getId()) {
            case R.id.db_create:
                SqliteDemo.InitDataBase(this);
                break;
            case R.id.db_insert:
                SqliteDemo.InsertData(this);
                break;
            case R.id.db_insert_api:
                SqliteDemo.InsertWithAPI(this);
                break;
            case R.id.db_select:
                SqliteDemo.SelectDatabase(this);
                break;
        }

    }

    public void InsertData(View view) {
    }
}
